/**
 * 
 */

package com.pp.admin.common.client.helper;

import com.google.gwt.dom.client.Element;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.user.client.ui.Image;

/**
 * @author pandurang
 */
public class AdminImage extends Image {
	
	protected String	value	= null;
	
	/**
	 * 
	 */
	public AdminImage() {

	}
	
	/**
	 * @param resource
	 */
	public AdminImage( ImageResource resource ) {

		super( resource );
	}
	
	public AdminImage( String url, String value ) {

		this( url );
		this.value = value;
	}
	
	/**
	 * @param url
	 */
	public AdminImage( String url ) {

		super( url );
		this.setHeight( Resource.ACTION_IMG_HIGHT );
		this.setWidth( Resource.ACTION_IMG_WIDTH );
	}
	
	/**
	 * @param element
	 */
	public AdminImage( Element element ) {

		super( element );
	}
	
	/**
	 * @param url
	 * @param left
	 * @param top
	 * @param width
	 * @param height
	 */
	public AdminImage( String url, int left, int top, int width, int height ) {

		super( url, left, top, width, height );
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * @return the value
	 */
	public String getValue() {

		return value;
	}
	
	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue( String value ) {

		this.value = value;
	}
	
}
